package com.chen.dal.dateobject.post;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chen.core.dal.BaseDO;
import com.chen.enums.CommonStatus;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 职位表
 */
@TableName("system_post")
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = true)
public class PostDO extends BaseDO {
    /**
     * 主键id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 岗位编号
     */
    @TableField(value = "code")
    private String code;
    /**
     * 岗位名称
     */
    @TableField(value = "name")
    private String name;
    /**
     * 顺序的排序
     */
    @TableField(value = "sort")
    private Integer sort;
    /**
     * 状态
     * {@link com.chen.enums.CommonStatus}
     */
    @TableField(value = "status")
    private Integer status;
    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;
}
